// 会员相关接口
import request from '@/utils/request'

// 查询会员列表
export function customerList(query) {
    return request({
        url: '/biz/customer/list',
        method: 'get',
        params: query
    })
}

// 根据Id查询
export function customerQueryById(query) {
    return request({
        url: '/biz/customer/queryById',
        method: 'get',
        params: query
    })
}

// 保存
export function customerSave(data) {
    return request({
        url: '/biz/customer/save',
        method: 'post',
        data
    })
}

// 修改
export function customerUpdate(data) {
    return request({
        url: '/biz/customer/update',
        method: 'put',
        data
    })
}

// 删除
export function customerDelete(id) {
    return request({
        url: `/biz/customer/delete/${id}`,
        method: 'delete',
    })
}